Discover container technologies like docker, include the articles, news, trends, analysis and practical advice about container technologies like docker on alibabacloud.com
Transferred from: http://www.oschina.net/translate/docker-lightweight-linux-containers-consistent-development-and-deploymentEnglish Original: Docker:lightweight Linux Containers for consistent development and Deployment
Use Docker containers-lightweight and flexible VM-like to take over "dependency hell". Learn how
technology developed by the company to run cloud services on thousands of servers. It is written in the Go language. The Go language is a static programming language developed by Google based on C language and with loose syntax. After six to nine months of rapid development, the company hired a new CEO, joined the Linux Foundation, and changed the company name to Docker, it also announced that it would focus on the development of
rmi [image]
docker rmi training/sinatra
Note: This tag is used by default when the tag name is not specified in the image latest. However, the meaning of latest is not the same as the head of the VCS, it is not the latest image, just the image that represents the tag name latest. If there is no image with the tag name called latest, it will be an error.SummarizeAlthough Docker is a virtualiza
Server virtualization refers to the operating system and hardware to add a layer, called the hypervisor layer, the next control hardware, on the host operating system, operating system OS in file form, known as virtual machine, the main problem is the hardware utilization and flexibility of the problem, the common solution for VMware Vsphere,xen,kvm,hyper-v.. Container virtualization refers to the application of packaging in the OS to run in the form
in his spare time and is currently preparing for AWS Certification and promotion of Docker-related technologies.
This time the protagonist finally turn to the big whale Docker. I don't know how many people are because Docker knows CoreOS, at least its popularity in the community is actually higher than the COREO
number we set before (23), login to enter also.
Remind: I use the server is Aliyun, Aliyun a lot of port default is not open, I set the 23 port also did not open, note to the Aliyun console open, or SSH will not go in.
Step Fifth: We can also store this Ubuntu image:
Using sudo docker save-o ubuntu.zip ubuntu will be stored in the current directory.
And then on any one of the machines to load mirror like
:80 friendlyhello
View docker image ls , you can see Friendlyhello this image
Browser Access localhost:4000, you can see the app we wrote with Flask
You can use the background mode to start the app, and the command isdocker run -d -p 4000:80 friendlyhello
Background mode-enabled apps can be used docker container stop container_id to turn off
L
Linux-based isolated and shared computing resource Container Ecosystems , and provides developers and managers with services that can be quickly built, transferred, and run to deliver distributed applications to other Docker containers. The special thing about Docker technology is that it doesn't look like Puppet The
as CPU and memory.
Because I use Docker in my usual way, I use Docker as a tool to tell my point of view, and of course other similar container tools like Rkt, the effect is the same.
DockerDocker, in a nutshell, packages the application's execution files, commands, called mirrors (Images), and then deploys the imag
computing resources, and provides developers and managers with services that can be quickly built, transferred, and run to deliver distributed applications to other Docker containers.What's special about Docker technology is that instead of using configuration files like puppet and chef, the Docker engine, a lightweig
- Acontainer ID IMAGE COMMAND CREATED STATUS PORTS names7691a814370e ubuntu:14.04 "/bin/bash" hours Exited ago Span class= "O" > ( 0 hours ago test $ sudo docker export 7691a814370e > Ubuntu.tar
$ test/buntu:v1.0$ sudo docker imagesREPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZEtest/ubuntu v1.0 9d37a6082e97
server container in Windows 10).>docker run-it-d-P 88:82 Aspnetcoreonnanoafafdbead8b04205841a81d974545f033dcc9ba7f761ff7e6cc0ec8f3ecce215>docker inspect-f "{{. NetworkSettings.Networks.nat.IPAddress}}" AfA172.16.240.197Now, I can access this site through 172.16.240.197:82. Once the bug has been fixed, we'll be able to access it
Nano Server with the following command (again, it will run in the Nano server container in Windows 10).>docker run-it-d-P 88:82 Aspnetcoreonnanoafafdbead8b04205841a81d974545f033dcc9ba7f761ff7e6cc0ec8f3ecce215>docker inspect-f "{{. NetworkSettings.Networks.nat.IPAddress}}" AfA172.16.240.197Now, I can access this site through 172.16.240.197:82. Once the bug has be
different ways:
Created based on a container that already has mirrors
$ docker commit-m "Add new Image"-a "" 000 (container ID) test (new image name)
Import based on local template
$ Cat Ubuntu-14.04-x86_64-minimal.tar.gz | Docker import-ubuntu:14.04
Create based on Dockerfile
6. Save the M
information in the traditional mode, can be relatively easy to obtain.To mitigate the barriers to use of the container's operating environment, Docker provides Docker exec commands that allow the container to execute specified commands outside the container to meet the user's needs.Did you have
This is a creation in
Article, where the information may have evolved or changed.
The research on the container network has been interrupted for some time due to the reasons for the exchange of work in 2016. With the current project to kubernetes application in depth, I feel that before the shallow understanding of the container network is not enough, the container
system, both are sending system signal sigterm. The docker kill command, more like a kill-9 or Kill-sigkill command in a Linux system, is used to send a sigkill signal and force the process to terminate.
Receiving and processing signals in a program
Knowing the docker stop docker kill difference, we can know that it
allows you to run commands directly within a container, such as entering a container and launching a bash:
Docker exec –ti [ID| NAME] /bin/bash
Nsenter ToolsNsenter is a tool that is included in the Util-linux pack 2.23 release, not a Docker's own tool that requires the installation of a Util-linux package, which is a bit cumbersome to
, then you need to use the-e lxc option to restart the Docker service process. With this option, the LXC Management container will be used again within the Docker. The easiest way to accomplish this task is to create the/etc/default/docker file (if it still does not exist) and add the following:
Docker_opts= "-E Lxc"
In real life, a container is a thing to hold something. Put your application in the container, the environment in the container you can freely customize, you can install anything you need in the configuration application, and then you can take the container of the application and run it anywhere, where you don't need t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.